package io;

import java.io.File;
import java.lang.reflect.Field;

public class IODemo6 {
    public static void main(String[] args) {
        File src = new File("./test2.txt");
        File dest = new File("./aaa/test2.txt");
        boolean ret = src.renameTo(dest);//重命名和移动目录
        System.out.println(ret);
    }
}
